import request from '@/router/axios';

// 列表
export const getList = () => {
  return request({
    url: '/api/riskIdentification/riskseverity/all',
    method: 'get'
  })
}

// 详情
export const getDetail = (id) => {
  return request({
    url: '/api/riskIdentification/riskseverity/detail',
    method: 'get',
    params: {
      id
    }
  })
}

// 删除
export const remove = (ids) => {
  return request({
    url: '/api/riskIdentification/riskseverity/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

// 新增
export const add = (row) => {
  return request({
    url: '/api/riskIdentification/riskseverity/submit',
    method: 'post',
    data: row
  })
}

// 编辑
export const update = (row) => {
  return request({
    url: '/api/riskIdentification/riskseverity/submit',
    method: 'post',
    data: row
  })
}